{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load ietf_filters %}
{% load django_bootstrap5 %}
{% block title %}IETF {{ meeting.number }} Meeting Agenda: {{ schedule.owner }} / {{ schedule.name }}{% endblock %}
{% block content %}
    {% origin %}
    <h1>IETF {{ meeting.number }} Schedule<br><small class="text-body-secondary">
    {{ schedule.owner }}/{{ schedule.name }} ({{ schedule.official_token }})</small></h1>
    <div class="my-3">
        {% if not schedule.is_official %}
            <a class="btn btn-primary"
               href="{% url 'ietf.meeting.views.make_schedule_official' num=meeting.number owner=schedule.owner.email_address name=schedule.name %}">
                Make this the official schedule
            </a>
            <a class="btn btn-warning"
               href="{% url 'ietf.meeting.views.delete_schedule' num=meeting.number owner=schedule.owner.email_address name=schedule.name %}">
                Delete this schedule
            </a>
        {% endif %}
    </div>
    <div>
        <form method="post" enctype="multipart/form-data" class="my-3">
            {% csrf_token %}
            {% bootstrap_form form layout="horizontal" %}
            <button class="btn btn-primary" type="submit" name="save">Save</button>
            <a href="{% url 'ietf.meeting.views.list_schedules' num=meeting.number %}"
               class="btn btn-secondary float-end">Back</a>
        </form>
    </div>
{% endblock %}